import request from '@/utils/request'

export const getPermissionList = () => {
  return request.get('/sys/permission')
}
export const AddPermission = (data) => {
  return request.post('/sys/permission', data)
}
export const DeletePremission = (id) => {
  return request.delete(`/sys/permission/${id}`)
}
export const getPermissionDetail = (id) => {
  return request.get(`/sys/permission/${id}`)
}
export const updatePremission = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
